import {
	createApp
} from 'vue'
import {
	createPinia
} from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn' //导入中文语言包
// 导入工具类，其实就是导入util下面的http工具类
import http from '@/util/http'
// 导入全局css样式文件
import '@/assets/global.css'

import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus, {
	locale: zhCn
}) //使用中文语言包
// 添加全局属性的方法
app.config.globalProperties.axios=http

app.mount('#app')